"""
__project__ = 'thc'
__file_name__ = '数据库联系'
__author__ = 'thc'
__time__ = '2020/12/1/001 15:51'
__product_name = PyCharm
-*- coding:utf-8 -*-
"""

from 数据库主体 import *

# db = DataBases()
# sql = "insert into students(studentNo,name) values(4,'李白')"
# db.git_inserts(sql)

#
# db = DataBases()
# sql = 'select * from students'
# a = db.git_select(sql)
# print(a)
#
# db = DataBases()
# sql = "update students set name='王昭君' where name='妲己'"
# db.git_updates(sql)
#
# db = DataBases()
# sql = 'select * from students'
# a = db.git_select(sql)
# print(a)
#
# db = DataBases()
# sql = "delete from students where name='王昭君'"
# db.git_deletes(sql)
#
db = DataBases()
sql = 'select * from students'
a = db.git_select(sql)
print(a)

# xt = XiTong()
# xt.zhu_ye()

